package com.example.demo.service;

import com.example.demo.entity.Authorit;
import com.example.demo.mapper.AuthorityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AuthorityServicelmpl implements  AuthoritService{
    @Autowired
    AuthorityMapper authorityMapper;
    @Override
    public Authorit getAuthorit(int id){
        return authorityMapper.getAuthority(id);
    }
}
